package de.fhb.gds.cp.io;

import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;

public class CpLoad {
	
	public static BufferedImage loadImage(String pathWithFile) throws IOException {
		BufferedImage im = ImageIO.read(new File(pathWithFile));
		return(im);
	}
	
	public static BufferedImage loadImage(File file) throws IOException {
		BufferedImage im = ImageIO.read(file);
		return(im);
	}
}
